﻿using MiniBottles.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MiniBottles.Repositories
{
    public class DictCollectionRepository : IDictCollectionRepository
    {
        private DataContext db;

        public DictCollectionRepository(DataContext db)
        {
            this.db = db;
        }
        public IEnumerable<Models.DictCollection> GetAll()
        {
            return db.DictCollection.Where(x => x.IsActive && !x.IsDeleted);
        }
    }
}